import request from "@/utils/request";

// 部门列表
export function flowLists(params?: any) {
  return request.get({ url: "/dept.flow/lists", params });
}

// 添加部门
export function flowAdd(params: any) {
  return request.post({ url: "/dept.flow/add", params });
}

// 编辑部门
export function flowEdit(params: any) {
  return request.post({ url: "/dept.flow/edit", params });
}

// 删除部门
export function flowDelete(params: any) {
  return request.post({ url: "/dept.flow/delete", params });
}

// 部门详情
export function flowDetail(params: any) {
  return request.get({ url: "/dept.flow/detail", params });
}

// 部门列表全部
export function flowAll() {
  return request.get({ url: "/dept.flow/all" });
}

// 按姓名搜索用户添加管理员
export function flowSearchUser(keyword: string) {
  return request.get({ url: "/dept.flow/search?keyword=" + keyword });
}

export function flowLogDetail(params: any) {
  return request.get({ url: "/dept.flow/logDetail", params });
}
